package com.teach.demo02;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-06 10:02
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Student extends Person {

  public Student() {
    super("匿名");
  }

  public Student(String name){
    super(name);
  }


  @Override
  public void eating() {
    System.out.println(super.name+"正在吃大鱼大肉");
    super.eating();
    System.out.println(super.name+"正在喝酒");
  }

  public void study(){
    System.out.println(super.name+"正在学习");
    super.eating();
    super.sleep();
  }
}
